package xby.study.proxy;

public class A {
    private String name = "tom";
    public String color = "red";
    public static String jump = " 100";


    private void g() {
        System.out.println("g().....");
    }


    public static void main(String[] args) {
        A a = new A();
        a.f("122");
    }

    public void f(String age) {

        {
            System.out.println(name);
            System.out.println(color);

        }


        abstract class ABase {

            {
                System.out.println("方法参数：AGE=" + age);
                g();
            }

            public abstract void h();

            public void say() {
                System.out.println("hello");
            }


        }

        ABase ab = new ABase() {
            @Override
            public void h() {
                System.out.println(name);
                System.out.println(color);
                System.out.println("haha");
            }
        };


        ab.h();


    }


}
